package com.atguigu.demo;

import com.atguigu.demo.config.AtguiguConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@SpringBootApplication

// 启用ConfigurationProperties功能
// 加载我们指定的配置类
@EnableConfigurationProperties(AtguiguConfig.class)
public class DemoMainType {

    public static void main(String[] args) {
        SpringApplication.run(DemoMainType.class, args);
    }

}
